import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class test {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encodedPassword = encoder.encode("123456"); // 你的明文密码
        System.out.println("加密后的密码: " + encodedPassword);
        // 示例输出: $2a$10$5VWXFenL1b1TcgN5GQzJde0Pru3Qn7p6y2Q1T2s3K4p5L6VX1jJ/W
    }
}